<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>about</title>

	</head>
	<body>
		about页面.
		<button type="button" id="btn">发消息</button>
		<button type="button" id="btn2">post请求</button>
		<div id="div1"></div>
		<script src="./js/jquery.min.js"></script>
		<script>
			$('#btn').click(function () {
				$.ajax({
					url: "http://127.0.0.1:7001/hello",
					success: function(result) {
						$("#div1").html(JSON.stringify(result));
					},
					error: function(xhr,status,error) {
						$("#div1").html(JSON.stringify(error));
					}
				});
			})
			
			$('#btn2').click(function () {
				$.ajax({
					type: 'post',
					data: {
						provinceId: 101
					},
					url: "http://39.107.46.215:81/common/queryCityListById",
					success: function(result) {
						$("#div1").html(JSON.stringify(result));
					},
					error: function(xhr,status,error) {
						$("#div1").html(JSON.stringify(error));
					}
				});
			})
		</script>
	</body>
</html>
